/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-4-20 下午6:25 Created by lyyang
 */
package com.jade.bss.weixin.api.yaozb.protocol;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 设备信息。
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-4-20 下午6:25
 */
public class BeaconInfo
        implements Serializable
{
    //设备编号
    @JsonProperty ("device_id")
    private long deviceId;
    private String uuid;
    private int major;
    private int minor;
    private int rssi;

    @JsonProperty("measure_power")
    private int measurePower;

    //激活状态，0：未激活，1：已激活
    private int status;
    //设备最近一次被摇到的日期（最早只能获取前一天的数据）；新申请的设备该字段值为0
    @JsonProperty ("last_active_time")
    private long lastActiveTime;
    //设备的备注信息
    private String comment;
    //设备关联的门店ID，关联门店后，在门店1KM的范围内有优先摇出信息的机会。
    @JsonProperty ("poi_id")
    private int poiId;
    @JsonProperty ("page_ids")
    private String pageId;
    private double distance;

    public int getRssi()
    {
        return rssi;
    }

    public void setRssi(int rssi)
    {
        this.rssi = rssi;
    }

    public int getMeasurePower()
    {
        return measurePower;
    }

    public void setMeasurePower(int measurePower)
    {
        this.measurePower = measurePower;
    }

    public BeaconInfo()
    {
    }

    public long getDeviceId()
    {
        return deviceId;
    }

    public void setDeviceId(long deviceId)
    {
        this.deviceId = deviceId;
    }

    public String getUuid()
    {
        return uuid;
    }

    public void setUuid(String uuid)
    {
        this.uuid = uuid;
    }

    public int getMajor()
    {
        return major;
    }

    public void setMajor(int major)
    {
        this.major = major;
    }

    public int getMinor()
    {
        return minor;
    }

    public void setMinor(int minor)
    {
        this.minor = minor;
    }

    public String getComment()
    {
        return comment;
    }

    public void setComment(String comment)
    {
        this.comment = comment;
    }

    public String getPageId()
    {
        return pageId;
    }

    public void setPageId(String pageId)
    {
        this.pageId = pageId;
    }

    public int getPoiId()
    {
        return poiId;
    }

    public void setPoiId(int poiId)
    {
        this.poiId = poiId;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public double getDistance()
    {
        return distance;
    }

    public void setDistance(double distance)
    {
        this.distance = distance;
    }

    public long getLastActiveTime()
    {
        return lastActiveTime;
    }

    public void setLastActiveTime(long lastActiveTime)
    {
        this.lastActiveTime = lastActiveTime;
    }
}
